const Mock = require("mockjs")
Mock.mock(RegExp(`/backLog` + ".*"), "post", (options) => {
    console.log(options);
    let queryData = JSON.parse(options.body)
    console.log(queryData);

    let data = Mock.mock({
        ["data|" + queryData.pagesize]: [
            {
                // "type": "@upper('@tld')",
                "type|1": ["US", "CN", "JP"],
                "user": "@cname",
                "results": "@ctitle(20, 30)",
                "dateTime": "@datetime",
                "description|1-100.2": 1
            }
        ],
        "total": 200
    })

    return data
})